#include <iostream>
#include <string_view>
#include <source_location>
// #include <format>

using namespace std;

void logMessage(string_view message,
								const source_location &location = source_location::current())
{
	// cout << format("{}({}): {}: {}", location.file_name(),
	// 							 location.line(), location.function_name(), message)
	// 		 << endl;
	printf("%s(%d): %s: %s", location.file_name(),
				 location.line(), location.function_name(), message.data());
}

void foo()
{
	logMessage("Starting execution of foo().");
}

int main()
{
	foo();
}
